package com.chushouya.common.constant;

import com.general.framework.core.enums.IEnum;
import io.swagger.annotations.ApiModel;

@ApiModel("内容类型")
public enum ContentType implements IEnum<String> {

    text("text", "文本"),
    rich_text("rich_text", "富文本"),
    json_text("json_text", "json字符串");

    private String value;

    private String name;

    ContentType(String value, String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public String value() {
        return value;
    }

    @Override
    public String named() {
        return name;
    }
}
